package com.wyx.bbs.mapper;

import com.wyx.bbs.domain.Comment;
import com.wyx.bbs.domain.CommentToUser;
import com.wyx.bbs.domain.ThumbsUp;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: Wu YunXia
 * @Description: 评论
 * @Date: Created in 16:38 2021/4/1
 * @Modefied By:
 */
@Mapper
public interface CommentMapper {

/**
 * 添加
 */
 int addComment(Comment comment);

/**
 * 根据postID查看
 * @param postId
 * @return
 */
 List<CommentToUser> getByPostId(Integer postId, int uid);

/**
 * 根据uid查看
 * @param
 * @return
 */
 List<Comment> getByUid(int uid);

/**
 * 读评论
 * @param
 * @return
 */
int readComment(List list);


/**
 * 点赞
 * @param thumbsUp
 * @return
 */
int addThumbsUp(ThumbsUp thumbsUp);


}
